import java.util.Scanner;

public class StringTest {
    public static String getBirthDate(String id) {
        String YYYY = id.substring(6, 10);
        String MM = id.substring(10, 12);
        String DD = id.substring(12,14);
        return YYYY + "-" + MM + "-" + DD;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String id = scanner.next();
        System.out.println(getBirthDate(id));
    }
}
